﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HP.Cachalote.WPF.Model;

namespace HP.Cachalote.UnitTests.FakeServices
{
    public class FakeDataService : IDataService
    {
        public void GetData(Action<DataItem, Exception> callback)
        {
            var item = new DataItem("Welcome to MVVM Light");
            callback(item, null);
        }

        public void GetServiceFactory(Action<Services.Interfaces.IServiceFactory, Exception> callback)
        {
            var serviceFactory = new FakeServiceFactory();
            callback(serviceFactory, null);
        }
    }
}
